<?php
class Login extends Controller {

    function Login()
    {
        parent::Controller();
    }

    function index()
    {
        // LOAD LIBRARIES
        $this->load->library(array('encrypt', 'form_validation', 'session'));

        // LOAD HELPERS
        $this->load->helper(array('form'));

        // VALID USER CREDENTIALS
        $user_credentials = array();
        $user_credentials['testuser1'] = array(
            'user_name' => 'testuser1',
            'user_pass' => 'Gag/R6LlMz8JKhjd+pkMrL+MUIHn86vjs/ZJ31uH+QRCh1eRxxA0Fve6FXfE7rmFqgqsiwe2ZFrFT8ylZs050A==' // password
        );
        $user_credentials['testuser2'] = array(
            'user_name' => 'testuser2',
            'user_pass' => 'Gag/R6LlMz8JKhjd+pkMrL+MUIHn86vjs/ZJ31uH+QRCh1eRxxA0Fve6FXfE7rmFqgqsiwe2ZFrFT8ylZs050A==' // password
        );
        $user_credentials['testuser3'] = array(
            'user_name' => 'testuser3',
            'user_pass' => 'Gag/R6LlMz8JKhjd+pkMrL+MUIHn86vjs/ZJ31uH+QRCh1eRxxA0Fve6FXfE7rmFqgqsiwe2ZFrFT8ylZs050A==' // password
        );

        $this->load->view('header');
        $this->load->view('login_form');
        $this->load->view('footer');
    }

}

/* End of file main.php */
/* Location: ./application/controllers/main.php */


